package agentEntity

type AgentLevel struct {
	ID                  int64   `json:"id" gorm:"column:id" form:"id"`                                                          // 自增ID
	Name                string  `json:"name" gorm:"column:name" form:"name"`                                                    // 等级名称
	Image               string  `json:"image" gorm:"column:image" form:"image"`                                                 // 背景图
	OneBrokerage        int16   `json:"one_brokerage" gorm:"column:one_brokerage" form:"one_brokerage"`                         // 一级分拥上浮比例
	OneBrokeragePercent float64 `json:"one_brokerage_percent" gorm:"column:one_brokerage_percent" form:"one_brokerage_percent"` // 一级分佣比例
	TwoBrokerage        int16   `json:"two_brokerage" gorm:"column:two_brokerage" form:"two_brokerage"`                         // 二级分拥上浮比例
	TwoBrokeragePercent float64 `json:"two_brokerage_percent" gorm:"column:two_brokerage_percent" form:"two_brokerage_percent"` // 二级分佣比例
	Grade               int16   `json:"grade" gorm:"column:grade" form:"grade"`                                                 // 等级
	Status              int8    `json:"status" gorm:"column:status" form:"status"`                                              // 状态
	IsDel               int8    `json:"is_del" gorm:"column:is_del" form:"is_del"`                                              // 是否删除
	AddTime             int64   `json:"add_time" gorm:"column:add_time" form:"add_time"`                                        // 添加时间
}

// TableName 表名称
func (*AgentLevel) TableName() string {
	return "eb_agent_level"
}
